languageController = $scope ->
    $scope.languages = app.languages
    return

$(document).ready ->
    $('#app_lang_all li a').click ->
        $('#text_lang').attr 'value', $(this).attr 'lang'
        $('#app_lang').submit()
        return

    more_language = false

    $('#app_more_lang').click ->
        unless more_language
            $('#app_lang_all').animate height: '85px'
            $('.app_icon_expand').css
                'background-position': '0px 2px'
                width: '15px'
            more_language = true
        else
            $('#app_lang_all').animate height: '25px'
            $('.app_icon_expand').css
                'background-position': '-15px 2px'
            more_language = false
        return
    return